package pro.cherish.knowledgeumldesignpattern.designPattern.com.cherish.builder;

import java.sql.PreparedStatement;

/**
 *
 */
public class AirShip {
    private OrbitalModel orbitaMOdule;//轨道仓
    private Engine engine;
    private EsCape escapeTower;

    public void launch(){
        System.out.println("飞船发射");
    }


    public OrbitalModel getOrbitaMOdule() {
        return orbitaMOdule;
    }

    public void setOrbitaMOdule(OrbitalModel orbitaMOdule) {
        this.orbitaMOdule = orbitaMOdule;
    }

    public Engine getEngine() {
        return engine;
    }

    public void setEngine(Engine engine) {
        this.engine = engine;
    }

    public EsCape getEscapeTower() {
        return escapeTower;
    }

    public void setEscapeTower(EsCape escapeTower) {
        this.escapeTower = escapeTower;
    }
}
class OrbitalModel{
    private String name;
    public OrbitalModel(String name){
        this.name=name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
class Engine{
    private String name;
    public Engine(String name){
        this.name=name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}
class EsCape{
    private String name;
    public EsCape(String name){
        this.name=name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }
}